<?php // no direct access
defined('_JEXEC') or die('Restricted access'); ?>
<form action="index.php?option=com_content&view=article&id=1&Itemid=2" method="post" name="form2">

<table width="95%" border="0" cellspacing="0" cellpadding="1" align="center" class="poll<?php echo $params->get('moduleclass_sfx'); ?>">
<thead>
	<tr>
		<td style="font-weight: bold;">
			<?php echo $poll->title; ?>
		</td>
	</tr>
</thead>
	<tr>
		<td align="center">
			<!--<div class="rbroundbox">
				<div class="rbtop"><div></div></div>
					<div class="rbcontent">-->
					
			<table class="pollstableborder<?php echo $params->get('moduleclass_sfx'); ?>" cellspacing="0" cellpadding="0" border="0">
			<?php for ($i = 0, $n = count($options); $i < $n; $i ++) : ?>
				<tr>
					<td class="<?php echo $tabclass_arr[$tabcnt]; ?><?php echo $params->get('moduleclass_sfx'); ?>" valign="top" >
					<?php 
					
					$name="voteid".$i;
			
					?>
					
						<input type="checkbox" name="voteid<?php echo $i;?>" id="voteid<?php echo $options[$i]->id;?>" value="<?php echo $options[$i]->id;?>" alt="<?php echo $options[$i]->id;?>" 
						
						<?php					if (isset($_POST[$name]))
						echo "checked";

						?>
						/>
					</td>
					<td class="<?php echo $tabclass_arr[$tabcnt]; ?><?php echo $params->get('moduleclass_sfx'); ?>" valign="top" colspan="3">
						<label for="voteid<?php echo $options[$i]->id;?>">
							<?php echo $options[$i]->text; ?>
						</label>
					</td>
				</tr>
				<?php
					$tabcnt = 1 - $tabcnt;
				?>
			<?php endfor; ?>
			<?php 	 
			$var=0;
			if (isset ($_POST['date']))
			{
				$var=$_POST['date'];
			}
?>
			<tr><td> <input type="radio" name="date" id="" value="1" <?php if ($var==1) echo  "checked='checked'"; ?>alt="1" /></td><td> NESSUNO</input></td><td>
			<input type="radio" name="date" id="" value="2" <?php if ($var==2) echo  "checked='checked'"; ?> alt="2"/></td><td>ANNO</td></tr><tr><td>
			<input type="radio" name="date" id="" value="3" <?php if ($var==3) echo  "checked='checked'"; ?> alt="3"/></td><td>MESE</td><td>
			<input type="radio" name="date" id="" value="4" <?php if ($var==4) echo  "checked='checked'"; ?> alt="4"/></td><td>STAGIONE		</td></tr>
			</table>
			
			<!--</div><!-- /rbcontent -->
	<!--<div class="rbbot"><div></div></div>
</div>--><!-- /rbroundbox -->
		</td>
	</tr>
	<tr>
		<td>
			<div align="center">
				<input type="submit" name="task_button" class="button" value="<?php echo "VAI"; ?>" />
				&nbsp;
				<!--<input type="button" name="option" class="button" value="<?php echo JText::_('Results'); ?>" onclick="document.location.href='<?php echo JRoute::_("index.php?option=com_poll&id=$poll->slug".$itemid); ?>'" />-->
			</div>
		</td>
	</tr>
</table>
	<!--<input type="hidden" name="option" value="com_content" />
	<input type="hidden" name="view" value="article" />
	<input type="hidden" name="id" value="46" />
	<input type="hidden" name="Itemid" value="53" />
	<input type="hidden" name="task" value="vote" />-->
	<?php //echo JHTML::_( 'form.token' ); ?>
</form>